
import request from '@/utils/request'


export function getAppRouters() {
    return request.get({ url: '/system/appmenu/getAppRouters' })
}
//发送短信
export function smsSend(mobile: any) {
    return request.get({ url: '/auth/app/appmobile/' + mobile })
}

export function queryTenantList() {
    return request.get({ url: '/auth/admin/tenant/list' })
}

export function getConfig() {
    return request.get({ url: '/auth/app/index/config' })
}

export function getPolicy(data: any) {
    return request.get({ url: '/auth/app/index/policy', data: data })
}

export function uploadImage(file: any, token?: string) {
    return request.uploadFile({
        url: '/auth/admin/sys-file/upload',
        filePath: file,
        name: 'file',
        header: {
            Authorization: `Bearer ${token}`,

        },
        fileType: 'image'
    })
}

export function wxJsConfig(data: any) {
    return request.get({ url: '/auth/app/wechat/jsConfig', data })
}
